﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Workflow.IDAO;
using Workflow.IService;
using Workflow.Model;

namespace Workflow.Service
{
	public class CaseReasonService : ICaseReasonService
	{
		public ICaseReasonDao CaseReasonDao { get; set; }


		public CaseReason GetRejectReasonById(string id)
		{
			//reject
			var retult = CaseReasonDao.Get(id);

			return retult;
		}

		public IList<CaseReason> GetRejectReason(string caseType)
		{
			//reject
			var retult = CaseReasonDao.GetRejectReason(caseType,"1");

			return retult;
		}
		public IList<CaseReason> GetPengdingReason(string caseType)
		{
			//Pengding
			var retult = CaseReasonDao.GetRejectReason(caseType, "2");

			return retult;
		}

		public IList<CaseReason> GetCaseReasonByType(string caseType)
		{
			var retult = CaseReasonDao.GetCaseReasonByType(caseType);

			return retult;
		}
	}
}
